﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinFu.IoC.Configuration;

namespace CoreEx.Database.Client.Implementation
{
   
    public class ConnectionInfo :IConnectionInfo
    {
        #region IConnectionInfo Members

        public string Name { get; set;}
       
        public string ProviderName { get; set;}
       
        public string ConnectionString { get; set;}

        public override string ToString()
        {
            if (!string.IsNullOrEmpty(ConnectionString))            
                return ConnectionString;            
            return base.ToString();
        }

        #endregion
    }
}
